import http from "./http.js";

export const login = (data) => {
    console.log(data);
    let result = http.post("/login", {userName: data.userName, pwd: data.pwd});
    return result;
}

export const getCaptcha = () => {
    let result = http.get("/captcha");
    return result;
}

export const getPrice = (producerId, destinationName) => {
    let result = http.get(`/getprice?producerId=${producerId}&destinationName=${destinationName}`);
    return result;
}